import axios from 'axios'

// 登录的
export const getlogin = async (params) => {
  return axios({
    url: 'http://localhost:3000/user2',
    params
  })
}


// 上传图片
export const changeImg = async (img,config) => {
  return await axios({
    url: 'http://182.92.156.134:8080/upload',
    method:'post',
    data: img,
    config
  })
}
// 修改个人信息
export const changeuser = async (data,id) => {
  return await axios({
    url: 'http://localhost:3000/user2/'+id,
    method:'patch',
    data
  })
}